package com.heima.springbootmybatis.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Arrays;

//在templates目录下的页面，只能通过controller来跳转（需要thymeleaf模板引擎支持）
@Controller
public class ControllerABC
{
    @RequestMapping("/abc")
    public String index(Model model)
    {
        model.addAttribute("msg","hello abc");
        model.addAttribute("users", Arrays.asList("张三","李四"));
        return "abc";
    }
}
